//
//  SongData.m
//  22-ALiMusic
//
//  Created by dllo on 16/8/16.
//  Copyright © 2016年 ZHW. All rights reserved.
//

#import "SongData.h"

#import "SongList.h"
#
@implementation SongData
- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"songList"]) {
        NSMutableArray<SongList *> *songListArr = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            SongList *songList = [SongList modelWithDic:dic];
            [songListArr addObject:songList];
        }
        _songList = songListArr;
    }
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"description"]) {
        _sd_description = value;
    }
}
@end
